/// @description 运动
// 作者：蟋蟀蝈蝈蛐蛐(小蟀) QQ1126390395
speed = 6;

//键盘控制
if(keyboard_check(vk_right))
	face = 1;
else if(keyboard_check(vk_left))
	face = -1;
else
	speed = 0;

//精灵转换
if(speed>0)
	sprite_index = sPlayer_right;
else
	sprite_index = sPlayer;

//方向转换
direction = 90-90*face;
image_xscale = abs(image_xscale)*face;
